<?php
/**
 * User: hjd-yao
 * Date: 2019/6/12
 * Time: 9:48
 */

namespace App\Models\Bonus;


use App\Models\BaseModel;

class BonusRecordModel extends BaseModel
{
    protected $table = 'bonus_record';

    protected $primaryKey = 'id';

    public $dateFormat = 'U';

    public function target()
    {
        return $this->belongsTo('DC\UserCenter\Models\UserBaseModel','target_uid','member_id');
    }

    public function relate()
    {
        return $this->belongsTo('DC\UserCenter\Models\UserBaseModel','relate_uid','member_id');
    }

}